package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 类目管理对象 category
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long id;

    /** 品类名称 */
    @Excel(name = "品类名称")
    private String name;

    /** 品类图片 */
    @Excel(name = "品类图片")
    private String img;

    /** 排序 */
    @Excel(name = "排序")
    private Long seq;

    /** 状态, 1 代表正常，0代表删除 */
    @Excel(name = "状态, 1 代表正常，0代表删除")
    private Long status;

    /** 最近修改人 */
    @Excel(name = "最近修改人")
    private String lastUpdateBy;

    /** 最后一次更新时间 */
    private Date lastUpdateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setSeq(Long seq) 
    {
        this.seq = seq;
    }

    public Long getSeq() 
    {
        return seq;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setLastUpdateBy(String lastUpdateBy) 
    {
        this.lastUpdateBy = lastUpdateBy;
    }

    public String getLastUpdateBy() 
    {
        return lastUpdateBy;
    }

    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("img", getImg())
            .append("seq", getSeq())
            .append("parentId", getParentId())
            .append("status", getStatus())
            .append("lastUpdateBy", getLastUpdateBy())
            .append("lastUpdateTime", getLastUpdateTime())
            .toString();
    }
}
